<template>
  <div class="about">
    <h1>This is an about page</h1>
    <p>仓库数据:{{indexStore.data}}</p>
    <button @click="redata">加一</button>
  </div>
</template>
<script>
import {mapStores} from "pinia";
import {useIndexStore} from "@/store";

export default {
  data(){
    return{
      number :0,
    }
  },
  methods:{
    redata(){
      this.indexStore.add()
    }
  },

  computed:{
    ...mapStores(useIndexStore)
  }
}

</script>
